package com.wudimeng.syll.service.impl;


import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.wudimeng.syll.common.ApiResponse;
import com.wudimeng.syll.dao.ICChuKuXinXiDAO;
import com.wudimeng.syll.dao.IChanPinXinXiDAO;
import com.wudimeng.syll.entity.CChuKuXinXi;
import com.wudimeng.syll.service.ICChuKuXinXiService;
import com.wudimeng.syll.service.IChanPinXinXiService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;


@Service
public class ChanPinXinXiService implements IChanPinXinXiService {

    @Autowired
    private IChanPinXinXiDAO dao;

    @Override
    public ApiResponse selectChanPinXinXi(Map<String, String> paramMap) {
        List<Map<String, Object>> maps = dao.selectChanPinXinXi(paramMap);
        return ApiResponse.instance(maps);
    }

    @Override
    public ApiResponse selectLengKuXinXi(Map<String, String> paramMap) {
        List<Map<String, Object>> maps = dao.selectLengKuXinXi(paramMap);
        return ApiResponse.instance(maps);
    }

}
